namespace CSharpPro._0923;
/*
public class Demo
{
    
  
    public void TestPrint()
    {
        int num = 123;
        Console.WriteLine(num/100);
        Console.WriteLine(num%100/10);
        //Console.WriteLine(num/10%10);
        Console.WriteLine(num%10);
    }
    
    
    public void TestPrint2()
    {
        //作业1,判断闰年
        //1.能被4整除，且不能被100整除
        //2.能被400整除

        int year=int.Parse(Console.ReadLine());
        bool flag = (year % 4 == 0 && year % 100 != 0 || year % 400 == 0);
        if (flag)
        {
            Console.WriteLine(year+"是闰年！");
        }
        else
        {
            Console.WriteLine(year+"不是闰年");
        }
    }

    public void TestPrint3()
    {
       Console.WriteLine("请输入此次旅行的出行方式？（航班/动车）"); 
       string trans = Console.ReadLine();
       Console.WriteLine("请输入出行的月份？");
       int month=int.Parse(Console.ReadLine());
       double price;
       if (month >= 5 && month <= 10)
       {
           if (trans == "航班")
           {
               price = 8800 * 0.9;
           }
           else
           {
               price = 8800 * 0.75;
           }
       }
       else
       {
           if (trans == "航班")
           {
               price = 8800 * 0.6;
           }
           else
           {
               price= 8800 * 0.3;
           }
       }
       Console.WriteLine("此次旅行的价格为："+price);
    }
    
    
}*/